import request from "@/utils/request";
import { AxiosPromise } from "axios";


// 登录接口
export let _login = (data: loginData): AxiosPromise<loginResData> => {
    return request({
        url: "/user/login",
        method: "post",
        data
    })
}


// 获取用户信息
export let _info = (): AxiosPromise<any> => {
    return request({
        url: "/user/info",
        method: "GET",
    })
}


// 修改用户头像
export let _avatar_edit = (params: editUploadData): AxiosPromise<userAddResData> => {
    return request({
        url: "/user/avatar_edit",
        method: "GET",
        params
    })
}


